﻿
#ifndef __ADMIN_FUNCTION_H_
#define __ADMIN_FUNCTION_H_

#include "register_and_login.h"
#include "share_data.h"

#define MAX_BUFFER 1024













int admin_function(int admin_judge, int listenfd);
WP unpack_pump(char* dest);
void pump_list(int listenfd);


void new_data_list(int listenfd, int pump_id);
void all_data_list(int listenfd, int pump_id);
char* data_pack(DAT* dat);




#endif
